//
//  HelloWorldAppDelegate.m
//  HelloWorld
//
//  Created by Haili Ma on 9/20/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "MyViewController.h"
#import "HelloWorldAppDelegate.h"

@implementation HelloWorldAppDelegate

@synthesize window;
@synthesize myViewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    

	MyViewController *aViewController = [[MyViewController alloc]
										 initWithNibName:@"MyViewController" bundle:[NSBundle mainBundle]];
	[self setMyViewController:aViewController];
	[aViewController release];
	
	UIView *controllersView = [myViewController view];
	[window addSubview:controllersView];
	
    // Override point for customization after application launch
    [window makeKeyAndVisible];
}

- (void)applicationWillTerminate: (UIApplication *) application {

}

- (void)dealloc {
	[myViewController release];
    [window release];
    [super dealloc];
}


@end
